@echo off
title Deploying WMS FG Service...
echo Deploying WMS FG Service...

cd .\nimbus-wms\nimbus-wms-fg-service
echo.
echo Image Build..............
docker build -t regwmsuat.azurecr.io/nimbus/wms-fg:latest .

echo.
echo Image Push..............
docker push regwmsuat.azurecr.io/nimbus/wms-fg:latest

echo.
echo K8s Deploy..............
kubectl apply -f ..\..\k8s\test\wms\fg\manifest.yml
kubectl rollout restart deployment nimbus-wms-fg -n nimbus
timeout /nobreak /t 5

echo.
echo Delete Image..............
docker rmi regwmsuat.azurecr.io/nimbus/wms-fg:latest
